package com.lanchetech.user.service;


import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.request.UserVoucherReq;
import com.lanchetech.bean.response.BasePageResp;
import com.lanchetech.bean.response.BaseResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.bean.vo.UserVoucherVO;
import com.lanchetech.entity.User;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.RequestBody;

public interface OperatorService {

    BaseResp sendUserVoucher(@AuthenticationPrincipal User user, String username,  Long spuId);

    ResultData<BasePageResp<UserVoucherVO>> getGiftUserVoucherPage(@AuthenticationPrincipal User user, UserVoucherReq req);

}